#!/usr/bin/python
# -*- coding:utf-8 -*-
import os
import random
doscls = os.system("cls")
while True:
    player = int(input("请输入  0剪刀  1石头  2布:"))
    computer = random.randint(0, 2)
    if (player == 0 and computer == 2) or (player == 1 and computer == 0) or (player == 2 and computer == 1):
        print("赢了")
    elif player == computer:
        print("平局")
    else:
        print("输了")
